"dooSimpleSound"

This is a freewary library for make simple sound (i.e. "click") on your
custom gauges for Micrsoft Flightsimulator with using DirectSound.

1. To use:
a) copy dooFSSound.lib to LIB folder of Microsoft Visual Studio
b) copy dooFSSound.h to folder with youre custom gauge source

2. Include dooFSSound.h (and some other header files) to your project:

#include
#include
#include
#include "dooFSSound.h"

then add user32.lib dsound.lib winmm.lib advapi32.lib dooFSSound.lib
to makefile

3. First you need init Directsound on install_routine sequence of youre gauge.

4. On closing youre gauge you needed kill DirectSound objects.

See sample:

=====================
void FSAPI gau_sound_cb( PGAUGEHDR pgauge, int service_id, UINT32 extra_data )
{
switch(service_id)
{
case PANEL_SERVICE_PRE_INSTALL: // "install_routine()"
InitDS(); // This is init sound
break;
// case PANEL_SERVICE_PRE_INITIALIZE:
// case PANEL_SERVICE_PRE_UPDATE:
// case PANEL_SERVICE_PRE_DRAW:
case PANEL_SERVICE_PRE_KILL: // "kill_routine()"
CloseDS(); // This is close sound
break;
}
=====================

5. Then copy you sound file (i.e. Soundname.wav) to Sound folder of Microsoft
Flighsimulator 2000

6. To play sound, you nede using function:

PlayDS("Soundname.wav");

7. This library work only with Microsoft Flightsimulator 2000 and work with
sound files only in PCM formats.

8. Disclaimer

The author is not liable for any damage of your system due to use
of this library. The author has no liability to answer the question
about use of this library, bug-fix, nor addition of other functions.

9. Copyright

Author, Oleg Devjatkin (doo) keeps copyright of this library, though it
is freeware.
This library permits using it fundamentally only in the preparation of
freeware. Have it about the use to the payware and ask about it to the
author.

Write " is being used for the preparation of
" and "Oleg Devjatkin (doo) holds the copyright of
" in readme file when you do the preparation of the
gauge by using this library.

P.S. Sorry, my english is bad
P.P.S. May be later I make full sound SDK (looping sounds, panning sounds,
playing sounds from resource & some other) to Microsoft Flightsimulator
(payware/shareware? may be... If you have commercial interest - write me..)

Regards, doo
doo@elem.ru
http://rfgroup.oss.ru